package com.staff.entity;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="t_staff_archive")
public class StaffArchive {//员工档案类
	private Long id;
	private Staff staff;
	private String archiveNum;
	private String content;

	private String staffName;
	private String staffNum;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	@OneToOne(cascade=CascadeType.ALL)
	public Staff getStaff() {
		return staff;
	}

	public String getStaffName() {
		return staffName;
	}
	public String getStaffNum() {
		return staffNum;
	}
	public String getArchiveNum() {
		return archiveNum;
	}
	public String getContent() {
		return content;
	}
	public void setId(Long id) {
		this.id = id;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public void setArchiveNum(String archiveNum) {
		this.archiveNum = archiveNum;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}
	public void setStaffNum(String staffNum) {
		this.staffNum = staffNum;
	}
	
	
}
